<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.common.ValueMaping" %>
<%@ taglib uri="/WEB-INF/myTaglib.tld" prefix="tag"%>
<%@ taglib uri="/WEB-INF/jstlfun.tld" prefix="myfn" %>
<%@ taglib uri="/WEB-INF/c.tld"  prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="x-ua-compatible" content="ie=7" />
	<TITLE>关键词列表:影迷网</TITLE>
 	<meta name="Keywords" content="广东 影迷 在线影院 片花 影迷卡 俱乐部 电影音乐 活动 社区 SNS 在线订票" />
	<meta name="Description" content="广东 影迷 在线影院 片花 影迷卡 俱乐部 电影音乐 活动 社区 SNS " />
  <link rel="stylesheet" type="text/css" href="${cpath}/css/gloab.css"/>
	<link rel="stylesheet" type="text/css" href="${cpath}/css/admin.css" />
	
</head>
<body>
<script> 
	//转页面
	var curUserID = '${userID}';
	if((curUserID == "")||(curUserID == null)){
//		parent.window.location.replace("${cpath}/index.jsp"); 
	}
</script>

		<DIV id=admin>

		<!-- 右侧宽栏 {{{ -->
		<DIV class=group_mid>

				<div class='subtop' >
					<p><a href="#"><img src="${cpath}/images/png-0222.png" ></a></p>
					<dl >
						<dd class="info"><span>关键词：</span>
							<input type="text" name='tagsname' value='${theForm.tagsname}' maxlength="50" class="long"/></dd>
					</dl>
					<div class='fun'>
						<li><a href="javascript:history.go(-1);">返&nbsp;&nbsp;回</a></li>
						<li><a href="javascript:history.go(-1);">查&nbsp;&nbsp;询</a></li>
					</div>
				</div>
			<hr/>
			<DIV class='whole'><!-- 右侧宽栏 }}}-->
				<table class="info">
						<thead>
							<tr align=left>
								<th width="15%">关键词</th>
								<th width="30%">超链接</th>
								<th width="5%">优先级</th>
								<th width="10%">用途</th>
								<th width="10%">操作</th>								
							</tr>
						</thead>
						<tbody>
						<form action="${cpath}/tags.do" name="theForm"  method="post" enctype="multipart/form-data" >
							<c:forEach var="tags" items="${tagslist}" varStatus="status">   
							<tr  <c:if test="${status.count%2!=0}"> bgcolor='#F2F3F6' </c:if> align=left>
								<td ><c:out value="${tags.tagsname}"></c:out></td>
								<td ><c:out value="${tags.url}"></c:out></td>
								<td ><c:out value="${tags.pri}"></c:out></td>
								<td ><c:out value="${tags.purpose}"></c:out></td>
								<td><a href="javascript:doDel('${tags.tagsID}');">删除</a></td>								
							</tr>
							</c:forEach> 
							<tr align="left">   
							 <td colspan="3">
								<!-- 分页主键 formName字段当前的form名称 -->
								<%@ include file="/jsplib/page.jsp" %>
								<!--隐藏域-->
								<input type="hidden" name='action' value='adlist'/>
							 </td>
							 <td colspan="1"><a href="${cpath}/param/adtagsoper.jsp">增加新关键词</a>
							 </td>
							</tr>  
						</form>
						</tbody>
				</table>
			</div>			
			</DIV><!-- content }}} -->
		</DIV><!-- profile_mid }}} -->
	</DIV><!-- group end }}} -->

</body>
</html>
<!---->

<script>

    /**
     * 检查项目资料维护
     */
	function doConfirm()
	{
		var form = document.theForm;

		var action = form['action'];

    form.submit();
	}
    /**
     * 检查项目资料维护
     */
	function doDel()
	{
		var form = document.theForm;

		var action = form['action'];

    form.submit();
	}

</script>

